<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('修改报单数据管理')" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-declaration-edit" th:object="${declaration}">
            <input name="decId" th:field="*{decId}" type="hidden">
<!--            <div class="form-group">    -->
<!--                <label class="col-sm-3 control-label is-required">报单编号：</label>-->
<!--                <div class="col-sm-8">-->
<!--                    <input name="decNo" th:field="*{decNo}" class="form-control" type="text" required>-->
<!--                </div>-->
<!--            </div>-->
<!--            <div class="form-group">    -->
<!--                <label class="col-sm-3 control-label">活动编号：</label>-->
<!--                <div class="col-sm-8">-->
<!--                    <input name="decActivityNo" th:field="*{decActivityNo}" class="form-control" type="text">-->
<!--                </div>-->
<!--            </div>-->
            <div class="form-group">    
                <label class="col-sm-3 control-label">活动名称：</label>
                <div class="col-sm-8">
                    <select name="decActivityName" class="form-control m-b" th:with="type=${@dict.getActivity()}">
                        <option th:each="dict : ${type}" th:text="${dict.getActName()}"
                                th:value="${dict.getActName()}"></option>
                    </select>                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">报单类型：</label>
                <div class="col-sm-8">
                    <select name="decType" class="form-control m-b" th:with="type=${@dict.getType('sys_oper_dec_type')}">
                        <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}" th:field="*{decType}"></option>
                    </select>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">军团/联盟名称：</label>
                <div class="col-sm-8">
                    <input name="decTypeName"  th:field="*{decTypeName}" class="form-control" type="text">
                </div>
            </div>

            <div class="form-group">
                <label class="col-sm-3 control-label is-required">品牌名称：</label>
                <div class="col-sm-8">
                    <input name="decBrand" th:field="*{decBrand}" class="form-control" type="text" required>
                </div>
            </div>
<!--            <div class="form-group">-->
<!--                <label class="col-sm-3 control-label">名称：</label>-->
<!--                <div class="col-sm-8">-->
<!--                    <input name="decRoleName"  th:field="*{decRoleName}" class="form-control" type="text">-->
<!--                </div>-->
<!--            </div>-->
            <div class="form-group">    
                <label class="col-sm-3 control-label">vip卡号：</label>
                <div class="col-sm-8">
                    <input name="decVipCardNo" th:field="*{decVipCardNo}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label is-required">单号：</label>
                <div class="col-sm-8">
                    <input name="decOrderNo" th:field="*{decOrderNo}" class="form-control" type="text" required>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label is-required">金额：</label>
                <div class="col-sm-8">
                    <input name="decAmount" th:field="*{decAmount}" class="form-control" type="text" required>
                </div>
            </div>


            <div class="form-group">    
                <label class="col-sm-3 control-label">签单类型：</label>
                <div class="col-sm-8">
                    <select name="decSignTypeName" class="form-control m-b" th:with="type=${@dict.getType('sys_oper_dec_sign_type')}">
                        <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}" th:field="*{decSignTypeName}"></option>
                    </select>
                </div>
            </div>


            <div class="form-group">
                <label class="col-sm-3 control-label ">带单品牌：</label>
                <div class="col-sm-8">
                    <input name="decAgentBrand"  th:field="*{decAgentBrand}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">带单人姓名：</label>
                <div class="col-sm-8">
                    <input name="decAgentPersonName"  th:field="*{decAgentPersonName}" class="form-control" type="tel">
                </div>
            </div>


            <div class="form-group">    
                <label class="col-sm-3 control-label is-required">客户姓名：</label>
                <div class="col-sm-8">
                    <input name="decCustomerName" th:field="*{decCustomerName}" class="form-control" type="text" required>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label is-required">客户电话：</label>
                <div class="col-sm-8">
                    <input name="decTelphone" th:field="*{decTelphone}" class="form-control" type="text" required>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">客户地址：</label>
                <div class="col-sm-8">
                    <input name="cusAddress"  th:field="*{cusAddress}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">录单人姓名：</label>
                <div class="col-sm-8">
                    <input name="decPersonName" th:field="*{decPersonName}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">奖品：</label>
                <div class="col-sm-8">
                    <input name="decGift"  th:field="*{decGift}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">报单状态：</label>
                <div class="col-sm-8">
                    <div class="radio-box" th:each="dict : ${@dict.getType('sys_oper_dec_status')}">
                        <input type="radio" th:id="${'decStatus_' + dict.dictCode}" name="decStatus" th:value="${dict.dictValue}" th:field="*{decStatus}">
                        <label th:for="${'decStatus_' + dict.dictCode}" th:text="${dict.dictLabel}"></label>
                    </div>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">备注：</label>
                <div class="col-sm-8">
                    <input name="decRemark" th:field="*{decRemark}" class="form-control" type="text">
                </div>
            </div>
        </form>
    </div>
    <th:block th:include="include :: footer" />
    <script th:inline="javascript">
        var prefix = ctx + "system/declaration";
        $("#form-declaration-edit").validate({
            focusCleanup: true
        });

        function submitHandler() {
            if ($.validate.form()) {
                $.operate.save(prefix + "/edit", $('#form-declaration-edit').serialize());
            }
        }
    </script>
</body>
</html>